<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<html>
<head>
<title>待审流程管理</title>
<%@include file="/common/meta.jsp"%>
<%@include file="/common/ec.jsp"%>
</head>
<body>
<div class="x-panel">
<div class="x-panel-header">【借款】财务审核管理</div>
<div class="x-toolbar">
  <s:form action="borrowIndex" theme="simple" id="form1">
  <div style="margin: 4px auto;">&nbsp;
	&nbsp;状态：<s:select list='auditStatusMap' name="model.audStatus" cssStyle="width:80px" headerKey="" headerValue="全部"></s:select>&nbsp;        
	&nbsp;编号：<s:textfield name="singleNo" cssStyle="width:120px; height:22px;" />&nbsp;
	&nbsp;开始日期：<input id="startDate" name="startDate" size="12"  value='${startDate}' onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')}',skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="Wdate"  readonly="readonly"/>&nbsp;
	&nbsp;结束日期：<input id="endDate" name="endDate" size="12" value='${endDate}' onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}',skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" class="Wdate"  readonly="readonly"/>&nbsp;
	<s:submit value="查询" cssClass="button" cssStyle="width:40px;"></s:submit>
   </div>
   </s:form>
</div>
<div class="x-panel-body">
<ec:table items="items" var="item" retrieveRowsCallback="limit" sortRowsCallback="limit" 
	    action="budgetIndex.do"
		useAjax="true" doPreload="false"
		maxRowsExported="10000000" 
		pageSizeList="15,50,100" 
		editable="false" 
		sortable="false"	
		rowsDisplayed="15"	
		generateScript="true"	
		resizeColWidth="true"	
		classic="false"	
		width="100%" 	
		height="400px"	
		minHeight="400"
		toolbarContent="navigation|pagejump|pagesize|refresh|extend|status">
	<ec:row>
	    <ec:column width="30" property="_s" title="No." value="${GLOBALROWCOUNT}" sortable="false" style="text-align:center"/>
		<ec:column width="140" property="budget.singleNo" title="预算号" />
	    <ec:column width="100" property="budget.dept.name" title="部门名称"/>	
	    <ec:column width="100" property="budget.amount" title="预算额度" />	
	    <ec:column width="70" property="budget.creater.name" title="定制人" style="text-align:center"/>	
		<ec:column width="70" property="budget.deptAudStatus" title="部门审批" style="text-align:center" mappingItem="auditStatusMap"/>
		<ec:column width="70" property="financeAudStatus" title="财务审批" style="text-align:center" mappingItem="auditStatusMap"/>
		<ec:column width="80" property="_0" title="操作" style="text-align:center" sortable="false">
	        <a href="${ctx}/flow/borrowAudit.do?model.id=${item.id}">审核</a> |
		    <a href="${ctx}/borrow/view.do?model.id=${item.borrow.id}" target="_blank">查看</a>	
		</ec:column>
	</ec:row>
</ec:table>
</div>
</div>
<script type="text/javascript">

function refresh() {
  ECSideUtil.reload('ec');
}
</script>

</body>
</html>